import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import vuetify from "./plugins/vuetify";
import UITools, { Confirmer, Messager } from "../packages";
import confirm from "@/components/confirm.vue";
import message from "@/components/message.vue";

Vue.config.productionTip = false;

Vue.use(UITools, {
  deps: { vuetify },
  components: { Confirm: confirm, Message: message },
});

// or

// Vue.use(Messager, {
//   dependents: { vuetify },
//   component: message,
// });
//
// Vue.use(Confirmer, {
//   dependents: { vuetify },
//   component: confirm,
// });

new Vue({
  router,
  vuetify,
  render: (h) => h(App),
}).$mount("#app");
